import Vue from 'vue'
import Router from 'vue-router'
import Person from '../components/JiaPerson/person.vue'
import yemian from '../components/Jiayemian/yemian.vue'
import  daizhifu from '../components/JiaOrder/daizhifu.vue'
import  daishouhuo from '../components/JiaOrder/daishouhuo.vue'
import daifahuo from '../components/JiaOrder/daifahuo.vue'
import JiaLogin from '../components/JiaLogin/JiaLogin.vue'
import all from '../components/JiaOrder/all.vue'
import JiaRegister from '../components/JiaRegister/Register.vue'
import jiaperson from '../components/JiaPerson/JiaPerson.vue'
import toubu from '../components/JiaPerson/toubu.vue'
import  jiaoyiwc from '../components/JiaOrder/jiaoyiwc.vue'
import shendeng from '../components/JiaShendeng/shendengz.vue'
import zuji from '../components/Jiazuji/zuji.vue'
import youhuiq from '../components/Jiayouhui/youhuiq.vue'
import shangch from '../components/Jiashangc/shangch.vue'
import shouhuo from '../components/Jiashouhuo/shouhuo.vue'
import guanzhu from '../components/Jiaguanzhu/guanzhu.vue'
import kefu from '../components/Jiakefu/kefu.vue'
import dingdanzx from '../components/Jiakefu/dingdanzx.vue'
import wuliuzx from '../components/Jiakefu/wuliuzx.vue'
import shouhouzx from '../components/Jiakefu/shouhouzx.vue'
import qitazx from '../components/Jiakefu/qitazx.vue'
import fankui from '../components/Jiakefu/fankui.vue'
import zhanghutx from '../components/Jiazhanghu/zhanghutixian.vue'
import zhanghuti from '../components/JiaPerson/zhanghutx.vue'
import xindeg  from '../components/Jiaxinde/xinde.vue'
import xinde from '../components/JiaPerson/xinde.vue'
import shiming from '../components/Jiashiming/shiming.vue'
import shimingz from '../components/JiaPerson/shiming.vue'
import shenfensm from '../components/Jiashiming/shenfensm.vue'
import shenfenshenhe from '../components/Jiashiming/shenfenshenhe.vue'
import gongzonghao from '../components/JiaPerson/gongzonghao.vue'

// import duan from '../components/JiaPerson/duanshangxiang.vue'
import  jiainformation from '../components/JiaPerson/information.vue'
import  information from '../components/jiaInformation/information.vue'
import code from '../components/jiaInformation/code.vue'
import invite from '../components/jiaInformation/invite.vue'
import touxiang from '../components/jiaInformation/touxiang.vue'
import nickname from '../components/jiaInformation/nickname.vue'
import phone from '../components/jiaInformation/phone.vue'
//设置
import setup from '../components/JiaPerson/setup.vue'
import set from '../components/Jiashezhi/shezhi.vue'
import zhanghugl from '../components/Jiashezhi/zhanghugl.vue'
import  xiugai from '../components/Jiashezhi/xiugai.vue'
import update from '../components/Jiashezhi/update.vue'
import add from '../components/Jiashouhuo/add.vue'
//收货地址
import complete from '../components/Jiashouhuo/complete.vue'
//客服咨询
import service from '../components/Jiakefu/service.vue'
import myfanjin from '../components/JiaOrder/myfanjin.vue'
//登录前
import login from '../components/JiaLogin/JiaLogin.vue'


//  首页路由配置
import ShouYe from '../components/HyyShouYe/shouye.vue'
import TuiJian from '../components/HyyShouYe/TuiJian.vue'
import ZeiDianJi from '../components/HyyShouYe/zeidianji.vue'
import MeiShi from '../components/HyyShouYe/meishi.vue'
import MuYing from '../components/HyyShouYe/muying.vue'
//  header中搜索输入组件引入
import SouSuo from '../components/HyyHeader/sousuo.vue'
//  header中搜索结果组件引入
import SouSuoJieGuo from '../components/HyyHeader/sousuo-jieguo.vue'
//  header中消息组件引入
import XiaoXi from '../components/HyyHeader/xiaoxi.vue'
//  header中本周新品组件引入
import XinPin from '../components/HyyHeader/xinpin.vue'
//  header中必买清单组件引入
import QingDan from '../components/HyyHeader/muying-bimaiqingdan.vue'
//  shouye美食详情组件
import MeiShiXiangQing from '../components/HyyShouYe/meishi-xiangqing.vue'
//  shouye轮播图详情组件
import LunBoTuXiangQing from  '../components/HyyShouYe/lunbotu-xiangqing.vue'
//  首页推荐商品详情组件
import ShangPinXiangQing from  '../components/HyyShouYe/tuijian-shangpinxiangqing.vue'
//  首页贼惦记限时断货组件
import XianShiDuanHuo from '../components/HyyShouYe/zeidianji-xianshiduanhuo.vue'
//  首页推荐页面绚丽眼妆组件
import XuanLiYanZhuang from '../components/HyyShouYe/tuijian-xuanliyanzhuang.vue'
//  贼惦记页面闭关修炼
import BiGuanXiuLian from '../components/HyyShouYe/zeidianji-biguanxiulian.vue'
//  贼惦记闭关修炼详情
import XLMJXiangQing from '../components/HyyShouYe/zeidianji-xlmj-xiangqing.vue'
//  母婴奶粉组件
import NaiFen from '../components/HyyShouYe/muying-naifen.vue'
//  推荐页面品牌精选
import PinPaiJingXuan from '../components/HyyShouYe/tuijian-pinpaijingxuan.vue'
// 分类
//分类首页
import FenLei from '../components/ldhFenLei/FenLei'
//面部护理页面
import MianBuHuLi from '../components/ldhFenLei/facialcare'
import qingkong from '../components/ldhFenLei/qingkongfenlei'
import huli from '../components/ldhFenLei/huli'
//面部护理页头尾部
import HuLiHeader from '../components/ldhFenLei/mianbuheader'
// 筛选页面
import shuaixuan from '../components/ldhFenLei/shuaixuan'
import gengduo from '../components/ldhFenLei/gengguofenlei'

// shouye
//断货王首页
import duanhuohome from '../components/ldhduanhuowang/duanhuohome'
//断货王商品详情页
import details from '../components/ldhduanhuowang/duanhuodetails'
//断货王商品详情页服务说明
import detailsshuoming from '../components/ldhduanhuowang/detailsshuoming'
//断货王商品详情页开抢状态
import kaiqiang from '../components/ldhduanhuowang/kaiqiang'
//断货王商品详情页税费说明
import duanhuoshuifei from '../components/ldhduanhuowang/shuifei'
//xinde.
import quanbuxinde from '../components/ldhduanhuowang/xinde'
//晒图
import saitu from '../components/ldhduanhuowang/saitu'
//心得详情
import xindedetails from '../components/ldhduanhuowang/xindedetails'

// 购物界面
import cartn from '../components/ldhshoppingcart/cartkong'
import carty from '../components/ldhshoppingcart/cartyou'
import dingdanxq from '../components/ldhshoppingcart/dingdanxq'
import querendingdan from '../components/ldhshoppingcart/querendingdan'
import jiesuan from '../components/ldhshoppingcart/jiesuan'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '',
      redirect: '/shouye/tuijian'
    },
    {
      path: '/yemian',
      name: 'yemian',
      component: yemian
    },
    {
      path: '/daizhifu',
      name: 'daizhifu',
      component: daizhifu
    },
    {
      path: '/daishouhuo',
      name: 'daishouhuo',
      component: daishouhuo
    },
    {
      path: '/daifahuo',
      name: 'daifahuo',
      component: daifahuo
    },
    {
      path: '/JiaLogin',
      name: 'JiaLogin',
      component: JiaLogin
    },
    {
      path: '/register',
      name: 'JiaRegister',
      component: JiaRegister
    },
    {
      path: '/jiaperson',
      name: 'jiaperson',
      component: jiaperson,
      children: [
        {
          path: '/jiayemian/yemian',
          name: 'jiayemian/yemian',
          component: yemian
        },
        {
          path: '/jialogin/login',
          name: 'jialogin/login',
          component: login
        },
      ]
    },
    //客服与反馈总头部组件
    // {
    //   path: '/zongtoubu',
    //   name: 'zongtoubu',
    //   component: zongtoubu,
    //   children: [
    //     // {
    //     //   path: '/jiakefu/kefu',
    //     //   name: 'jiakefu/kefu',
    //     //   component: kefu
    //     // },
    //   ]
    // },
    //客服与反馈头部组件
    {
      path: '/toubu',
      name: 'toubu',
      component: toubu,
      children: [
        {
          path: '/jiakefu/kefu',
          name: 'jiakefu/kefu',
          component: kefu
        },
        {
          path: '/jiakefu/fankui',
          name: 'jiakefu/fankui',
          component: fankui
        },
      ]
    },
    //账户提现组件
    {
      path: '/zhanghutx',
      name: 'zhanghutx',
      component: zhanghuti,
      children: [
        {
          path: '/jiazhanghu/zhanghutixian',//jiazhanghu
          name: 'jiazhanghu/zhanghutixian',
          component: zhanghutx
        },
      ]
    },
    //我的心得组件
    {
      path: '/xinde',
      name: 'xinde',
      component: xinde,
      children: [
        {
          path: '/jiaxinde/xindeg',
          name: 'jiaxinde/xindeg',
          component: xindeg
        }
      ]
    },
    //身份实名认证组件
    {
      path: '/shimingz',
      name: 'shimingz',
      component: shimingz,
      children: [
        {
          path: '/shimingz/shiming',
          name: 'shimingz/shiming',
          component: shiming
        },
        {
          path: '/shenfenshenhe',
          name: 'shenfenshenhe',
          component: shenfenshenhe
        },
      ]
    },
    //关注公众号组件
    {
      path: '/gongzonghao',
      name: 'gongzonghao',
      component: gongzonghao,
      children: [
        {
          path: '/guanzhu',
          name: 'guanzhu',
          component: guanzhu
        },
      ]
    },
    //个人信息组件
    {
      path: '/jiainformation',
      name: 'jiainformation',
      component: jiainformation,
      children: [
        {
          path: '/information',
          name: 'information',
          component: information
        },
        {
          path: '/code',
          name: 'code',
          component: code
        },
        {
          path: '/invite',
          name: 'invite',
          component: invite
        },
        {
          path: '/touxiang',
          name: 'touxiang',
          component: touxiang
        },
        {
          path: '/nickname',
          name: 'nickname',
          component: nickname
        },
        {
          path: '/phone',
          name: 'phone',
          component: phone
        }
      ]
    },
    //设置 组件
    {
      path: '/setup',
      name: 'setup',
      component: setup,
      children: [
        {
          path: '/set',
          name: 'set',
          component: set
        },
        {
          path: '/zhanghugl',
          name: 'zhanghugl',
          component: zhanghugl
        },

        {
          path: '/update',
          name: 'update',
          component: update
        },
      ]
    },


    // {path: '/zhanghutx', name: 'zhanghutx', component: zhanghutx},
    {path: '/jiaoyiwc', name: 'jiaoyiwc', component: jiaoyiwc},
    {path: '/shendeng', name: 'shendeng', component: shendeng},
    {path: '/zuji', name: 'zuji', component: zuji},
    {path: '/youhuiq', name: 'youhuiq', component: youhuiq},
    // {path: '/xinde', name: 'xinde', component: xinde},
    {path: '/shangch', name: 'shangch', component: shangch},
    {path: '/shouhuo', name: 'shouhuo', component: shouhuo},
    {path: '/all', name: 'all', component: all},
    {path: '/kefu', name: 'kefu', component: kefu},//客服与反馈页面
    {path: '/dingdanzx', name: 'dingdanzx', component: dingdanzx},
    {path: '/wuliu', name: 'wuliuzx', component: wuliuzx},
    {path: '/shouhou', name: 'shouhouzx', component: shouhouzx},
    {path: '/qita', name: 'qitazx', component: qitazx},
     {path: '/fankui', name: 'fankui', component: fankui},
    {
      path: '/shimingz/shenfensm', name: 'shimingz/shenfensm', component: shenfensm
    },

    // {path: '/duan', name: 'duan', component: duan},
    {path: '/xiugai', name: 'xiugai', component: xiugai},
    {path: '/add', name: 'add', component: add},
    //收货地址
    {path: '/complete', name: 'complete', component: complete},
    //客服中心
    {path: '/service', name: 'service', component: service},
    {path: '/myfanjin', name: 'myfanjin', component: myfanjin},

    {
      path: '/',
      redirect: '/shouye/tuijian'
    },

    //  首页路由配置

    {
      path: '/shouye',
      name: 'shouye',
      component: ShouYe,
      children: [
        {
          path: 'tuijian',
          name: 'shouye/tuijian',
          component: TuiJian
        },
        {
          path: 'zeidianji',
          name: 'shouye/zeidianji',
          component: ZeiDianJi
        },
        {
          path: 'meishi',
          name: 'shouye/meishi',
          component: MeiShi
        },
        {
          path: 'muying',
          name: 'shouye/muying',
          component: MuYing
        },
      ]
    },
    //  header搜索输入路由配置
    {
      path: '/sousuo',
      name: 'sousuo',
      component: SouSuo
    },
    //  header搜索结果路由配置
    {
      path: '/sousuo-jieguo',
      name: 'sousuo-jieguo',
      component: SouSuoJieGuo
    },
    //  header消息中心路由设置
    {
      path: '/xiaoxi',
      name: 'xiaoxi',
      component: XiaoXi
    },
    // 分类
    //  header本周新品路由设置
    {
      path: '/xinpin',
      name: 'xinpin',
      component: XinPin
    },
    //  header必买清单路由设置
    {
      path: '/qingdan',
      name: 'qingdan',
      component: QingDan
    },
    //  shouye中美食详情路由
    {
      path: '/meishi-xiangqing',
      name: 'meishi-xiangqing',
      component: MeiShiXiangQing
    },
    //  shouye轮播图详情路由
    {
      path: '/lunbotu-xiangqing',
      name: 'lunbotu-xiangqing',
      component: LunBoTuXiangQing
    },
    //  首页推荐的商品详情路由
    {
      path: '/shangpinxiangqing',
      name: 'shangpinxiangqing',
      component: ShangPinXiangQing
    },
    //  首页贼惦记限时断货路由
    {
      path: '/xianshiduanhuo',
      name: 'xianshiduanhuo',
      component: XianShiDuanHuo
    },
    //  推荐页面绚丽眼妆路由
    {path: '/xuanliyanzhuang', name: 'xuanliyanzhuang', component: XuanLiYanZhuang},
    //  贼惦记中的闭关修炼路由
    {
      path: '/biguanxiulian',
      name: 'biguanxiulian',
      component: BiGuanXiuLian
    },
    //  修炼秘籍详情
    {
      path: '/xlmj-xiangqing',
      name: 'xlmj-xiangqing',
      component: XLMJXiangQing
    },
    //  母婴页面奶粉路由
    {
      path: '/naifen',
      name: 'naifen',
      component: NaiFen
    },
    //  推荐页面品牌精选路由
    {
      path: '/pinpaijingxuan',
      name: 'pinpaijingxuan',
      component: PinPaiJingXuan
    },
    {
      path: '/FenLei',
      name: 'FenLei',
      component: FenLei
    },
    // 分类--面部护理
    {
      path:'/MianBuHuLi',
      name:'MianBuHuLi',
      component: MianBuHuLi
    },
    {
      path:'/qingkong',
      name:'qingkong',
      component:qingkong
    },
    // 护理头尾部
    {
      path:'/HuLiHeader',
      name:'HuLiHeader',
      component:HuLiHeader
    },
    {
      path:'/huli',
      name:'huli',
      component:huli
    },
    // 分类筛选
    {
      path:'/shuaixuan',
      name:'shuaixuan',
      component:shuaixuan
    },
    // 更多分类
    {
      path:'/gengduo',
      name:'gengduo',
      component:gengduo
    },
// shouye
//断货王首页
    {
      path:'/duanhuohome',
      name:'duanhuohome',
      component:duanhuohome
    },
//断货王商品详情页
    {
      path:'/details',
      name:'details',
      component:details
    },
//断货王商品详情页服务说明
{
  path:'/detailsshuoming',
    name:'detailsshuoming',
  component:detailsshuoming
},
//断货王商品详情页开抢状态
{
  path:'/kaiqiang',
    name:'kaiqiang',
  component:kaiqiang
},
//断货王商品详情页税费说明
{
  path:'/duanhuoshuifei',
    name:'duanhuoshuifei',
  component:duanhuoshuifei
},
//xinde.
{
  path:'/quanbuxinde',
    name:'quanbuxinde',
  component:quanbuxinde
},
//晒图
{
  path:'/saitu',
    name:'saitu',
  component:saitu
},
//心得详情
{
  path:'/xindedetails',
    name:'xindedetails',
  component:xindedetails
},

// 购物界面链接
    {
      path:'/cartn',
      name:'cartn',
      component:cartn
    },
    {
      path:'/carty',
      name:'carty',
      component:carty
    },
    {
      path:'/dingdanxq',
      name:'dingdanxq',
      component:dingdanxq
    },
    {
      path:'/querendingdan',
      name:'querendingdan',
      component:querendingdan
    },
    {
      path:'/jiesuan',
      name:'jiesuan',
      component:jiesuan
    }

    ]},


    )







